// part1:C14:14.35:ReadingString.h
// read line from istream,
// return string of readed.
#ifndef READSTRING_H__
#define READSTRING_H__
class ReadString
{
public:
    ReadString(): is(is){}
    std::string operator()()
    {
        string line;
        if (!getline(is, line)) 
        {
            line = " ";  
        }
        return line;
    }
private:  
    istream &is;
};
#endif
